<div class="box">
		<!-- Box Head -->
		<div class="box-head">
			<h2>Sửa tin rao</h2>
		</div>
		<!-- End Box Head -->
		
		<form method="post" enctype="multipart/form-data" action="<?php echo $this->webroot;?>/tinraos/admin_edit">
			<input name="id" type="hidden" value="<?php echo $tinrao['Tinrao']['id'];?>" />
			<!-- Form -->
			<div class="form">
					<p>
						<label>Tiêu đề <span>(Required Field)</span></label>
						<input class="field size1"  type="text" name="tieude" value="<?php echo $tinrao['Tinrao']['tieude'];?>" />
					</p>
					<p>
						<label>Nội dung <span>(Required Field)</span></label>
						<textarea class="field size1"  rows="10" cols="30" name="noidung"><?php echo $tinrao['Tinrao']['noidung'];?></textarea>
					</p>
					<p>
						<label>Tên liên hệ <span>(Required Field)</span></label>
						<input class="field size1"  type="text" name="tenlienhe" value="<?php echo $tinrao['Tinrao']['tenlienhe'];?>"/>
					</p>
					<p>
						<label>Số điện thoại <span>(Required Field)</span></label>
						<input class="field size1"  type="text" name="sdtlienhe" value="<?php echo $tinrao['Tinrao']['sdtlienhe'];?>" />
					</p>
					<p>
						<label>Email <span>(Required Field)</span></label>
						<input class="field size1"  type="text" name="email" value="<?php echo $tinrao['Tinrao']['email'];?>" />
					</p>
					
					<p>
						<label>Thuộc dự án <span>(Required Field)</span></label>
						<select name="idduan">
							<?php
								foreach($duans as $duan):
									echo '<option value="'.$duan['Duan']['id'].'">'.$duan['Duan']['tieude'].'</option>';
								endforeach;
							?>
						</select>
					</p>
					<p>
						<label>Vị trí xuất hiện <span>(Required Field)</span></label>
						<select name="vitrixh">
							<?php
								for($i=1; $i<=10; $i++){
									if($i==$tinrao['Tinrao']['vitrixh']){
										echo '<option selected value="'.$i.'">'.$i.'</option>';
									}else{
										echo '<option value="'.$i.'">'.$i.'</option>';
									}
								}
							?>
							
						</select>
					</p>	
						
				
			</div>
			<!-- End Form -->
			
			<!-- Form Buttons -->
			<div class="buttons">
				<input type="submit" class="button" value="submit" />
			</div>
			<!-- End Form Buttons -->
		</form>
	</div>